package com.ecfront.dao;

import java.util.List;

import com.ecfront.pojo.GoodsImpl;

public interface GoodsImplDAO {

	// property constants
	public static final String GI_PRICE = "price";
	public static final String GI_IS_RECOMMEND = "isRecommend";
	public static final String GI_HIT = "hits";

	public abstract void save(GoodsImpl transientInstance);

	public abstract void delete(GoodsImpl persistentInstance);

	public abstract GoodsImpl findById(java.lang.Integer id);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByGiPrice(Object giPrice);

	public abstract List findByGiIsRecommend(Object giIsRecommend);

	public abstract List findByGiHit(Object giHit);

	public abstract List findAll();

}